package com.bolt.support.spring.mvc.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * Created by Administrator on 2020/10/27.
 */

@Data
@ConfigurationProperties(prefix = "bolt.file")
public class ResourceProperties {

    /** 文件大小限制 */
    private Long maxSize;

    /** 头像大小限制 */
    private Long avatarMaxSize;

    private String uploadPath;

    private List<ResourceConfig> resources;

    @Data
    public static class ResourceConfig{

        private String pattern;

        private String path;

        private String type;
    }

}

 